import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';
import {RoleInfoComponent} from "./role-info/role-info.component";
import {RoleEditComponent} from "./role-edit/role-edit.component";
import {RoleUsersComponent} from "./role-users/role-users.component";
import {RoleMenusComponent} from "./role-menus/role-menus.component";

const routes: Routes = [
  {
    path: "",
    component: RoleInfoComponent,
    data: {
      keep: true
    }
  },
  {
    path: "edit",
    component: RoleEditComponent
  },
  {
    path: "users",
    component: RoleUsersComponent,
    data: {
      keep: true
    }
  },
  {
    path: "menus",
    component: RoleMenusComponent
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class RoleRoutingModule {
}
